
export const useFindChapterLessonsStatus = (id) => {
    return useHttpPost("/cnote/chapter/liststatus/"+id)
}

export const useFindChapterLessons = (id) => {
    return useHttpPost("/v1/cnote/chapter/list/"+id)
}

export const useChapterGetById = (id,noteId) => {
    return useHttpPost("/v1/cnote/chapter/get/"+id+"/"+noteId)
}

export const useChapterGetValidatorById = (body) => {
    return useHttpPost("/v1/cnote/chapter/getvalidator",{body})
}

export const useChapterGetNoValidatorById = (body) => {
    return useHttpPost("/cnote/chapter/getnovalidator",{body})
}

export const useChapterLessonUserRecords = (body) => {
    return useHttpPost("/v1/cnote/chapter/lesson/userrecords",{body})
}

export const useChapterCopyData = (id,noteId) => {
    return useHttpPost("/v1/cnote/chapter/copy/"+id+"/"+noteId)
}

export const useChapterRemoveByID = (body) => {
    return useHttpPost("/v1/cnote/chapter/remove",{body})
}

export const useChapterUpdateStatus = (body) => {
    return useHttpPost("/v1/cnote/chapter/status",{body})
}

export const useChapterSave = (body) => {
    return useHttpPost("/v1/cnote/chapter/save",{body})
}

export const useChapterUpdateContent = (body) => {
    return useHttpPost("/v1/cnote/chapter/update/content",{body})
}

export const useLessonGetValidatorById = (body) => {
    return useHttpPost("/v1/cnote/lesson/getvalidator",{body})
}

export const useLessonGetNoValidatorById = (body) => {
    return useHttpPost("/cnote/lesson/getnovalidator",{body})
}

export const useLessonGetById = (id,noteId) => {
    return useHttpPost("/v1/cnote/lesson/get/"+id+"/"+noteId)
}

export const useLessonCopyData = (id,noteId) => {
    return useHttpPost("/v1/cnote/lesson/copy/"+id+"/"+noteId)
}

export const useLessonRemoveByID = (body) => {
    return useHttpPost("/v1/cnote/lesson/remove",{body})
}

export const useLessonUpdateStatus = (body) => {
    return useHttpPost("/v1/cnote/lesson/status",{body})
}

export const useLessonSave = (body) => {
    return useHttpPost("/v1/cnote/lesson/save",{body})
}

export const useLessonUpdateContent = (body) => {
    return useHttpPost("/v1/cnote/lesson/update/content",{body})
}